/*
 * @Description: 
 * @Author: zhanyinjia
 * @Date: 2022-09-29 14:23:08
 * @LastEditors: zhanyinjia
 * @LastEditTime: 2023-05-17 09:43:56
 */
import Vue from "vue";
import VueRouter from "vue-router";
import commonRoutes from './common'
import libraryRoutes from './library'
import repackageRoutes from './repackage'
import othersRoutes from './others'


Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    redirect: '/common'
  },
  ...commonRoutes,
  ...libraryRoutes,
  ...repackageRoutes,
  ...othersRoutes
]

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes
});

export default router;